package com.dibang.app.operation.control.impl;

import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.dibang.app.R;
import com.dibang.app.mvp.abs.AbsControl;
import com.dibang.app.operation.control.abs.SafeCenterControl;
import com.dibang.app.operation.model.abs.SafeCenterModel;
import com.dibang.app.operation.presenter.abs.SafeCenterPresenter;
import com.dibang.app.operation.provider.SafeCenterProImpl;
import com.dibang.app.operation.view.abs.SafeCenterView;
import com.xuexiang.xui.widget.button.shadowbutton.BaseShadowButton;
import com.xuexiang.xui.widget.button.shadowbutton.ShadowButton;

import butterknife.BindView;
import butterknife.ButterKnife;

public class SafeCenterControlImpl extends AbsControl<SafeCenterView, SafeCenterPresenter, SafeCenterModel, SafeCenterProImpl> implements SafeCenterControl {

    @BindView(R.id.activity_safe_center_content_view)
    RecyclerView contentView;

    @BindView(R.id.activity_safe_center_alarm_view)
    ShadowButton alarmBtn;

    public SafeCenterControlImpl(@NonNull View targetView) {
        super(targetView);
        ButterKnife.bind(this,targetView);
        alarmBtn.setShapeType(BaseShadowButton.SHAPE_TYPE_ROUND);
        getView().onSafeCenterContentViewChanged(contentView);
    }
}
